Efficient Retrieval of Subsumed Subgoals in Tabled Logic Programs
نویسندگان
چکیده
Tabling based systems use call similarity to decide when a tabled subgoal should produce or consume answers. Most tabling engines do that by using variant checks. A more refined method, named call subsumption, considers that a subgoal A will consume answers from a subgoal B if A is subsumed by B, thus allowing greater answer reuse. Recently, we have developed an extension, called Retroactive Call Subsumption, that improves upon call subsumption by supporting bidirectional sharing of answers between subsumed/subsuming subgoals. In this paper, we present an algorithm to efficiently retrieve the set of currently evaluating subgoals that are subsumed by a more general subgoal.
منابع مشابه
Efficient instance retrieval of subgoals for subsumptive tabled evaluation of logic programs
Tabled evaluation is an implementation technique that solves some problems of traditional Prolog systems in dealing with recursion and redundant computations. Most tabling engines determine if a tabled subgoal will produce or consume answers by using variant checks. A more refined method, named call subsumption, considers that a subgoal A will consume from a subgoal B if A is subsumed by (an in...
متن کاملRetroactive Subsumption-Based Tabled Evaluation of Logic Programs
Tabled evaluation is a recognized and powerful implementation technique that overcomes some limitations of traditional Prolog systems in dealing with recursion and redundant sub-computations. Tabling based systems use call similarity to determine if a tabled subgoal will produce their own answers or if it will consume from another subgoal. While call variance has been a very popular approach, c...
متن کاملA Space Efficient Engine for Subsumption-Based Tabled Evaluation of Logic Programs
Tabled resolution improves e ciency as well as termination properties of logic programs by sharing answer computations across \similar" subgoals. Similarity based on subsumption of subgoals rather than variance (i.e., identity modulo variable renaming) promotes more aggressive sharing, but requires mechanisms to index answers from dynamically growing sets. Earlier we proposed Dynamic Threaded S...
متن کاملOn the Optimality of Scheduling Strategies in Subsumption-based Tabled Resolution
Subsumption-based tabled logic programming promotes more aggressive reuse of answer tables over variant-based tabling. However resolving subgoals against answers in tabled logic programming may require accessing incomplete answer tables (i.e., more answers remain to be added). In subsumption-based tabling it is far more efficient to retrieve from completed tables. Scheduling strategies promote ...
متن کاملDepth - First : Improving Tabled Logic Programsthrough Alternative Scheduling Strategies ?
Tabled evaluations ensure termination of logic programs with nite models by keeping track of which subgoals have been called. Given several variant subgoals in an evaluation , only the rst one encountered will use program clause resolution; the rest uses answer resolution. This use of answer resolution prevents innnite looping which happens in SLD. Given the asynchronicity of answer generation ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2010